package com.library.web.sys_book.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.library.web.sys_book.pojo.BookVo;
import com.library.web.sys_book.pojo.ListParm;
import com.library.web.sys_book.pojo.SysBooks;
import com.library.web.sys_book.pojo.ExportVo;

import java.util.List;

public interface SysBooksService extends IService<SysBooks> {
    IPage<SysBooks> getList(ListParm listParm);

    //减库存
    Integer subBook(Long bookId);

    //还书加库存
    int addBook(Long bookId);

    //热门图书
    List<BookVo> getHotBook();

    //周图书排行
    List<BookVo> getBookByWeek();

    //月图书排行
    List<BookVo> getBookByMonth();

    //导出图书
    List<ExportVo> exportBook();
}
